﻿using BW.WMS.WareHouseAllot.Dto.GoodsType;
using BW.WMS.WareHouseAllot.Parameter.Input.GoodsType;
using BW.WMS.WareHouseAllot.Parameter.Output.GoodsType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace BW.WMS.WareHouseAllot.Interface.GoodsType
{
    /// <summary>
    /// 货品类型服务接口
    /// </summary>
    public interface IGoodsTypeService
    {
        /// <summary>
        /// 添加货品类型
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GoodsTypeDto> CreateGoodsType(AddGoodsTypeInput input);

        /// <summary>
        /// 获取货品类型树
        /// </summary>
        /// <returns></returns>
        Task<PagedResultDto<GoodsTypeOutput>> GetGoodsTypeTreeAsync(GoodsTypeQuertInput input);

        /// <summary>
        /// 根据货品id获取货品类型信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<GoodsTypeOutput> GetGoodsTypeValue(Guid id);

        /// <summary>
        /// 修改货品类型信息
        /// </summary>
        /// <param name="id"></param>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GoodsTypeDto> UpdateGoodsType(Guid id, UpdateGoodsTypeInput input);

        /// <summary>
        /// 删除货品类型信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteGoodsType(Guid id);
    }
}
